const Layout = () => import("@/layout/index.vue");

// 所有门店
// 档期管理

const routes = [
    {
        path: "/store",
        name: "Store",
        component: Layout,
        meta: {
            title: "门店管理",
            icon: "Shop",
            affix: true,
            keepAlive: true,
            alwaysShow: true,
        },
        children: [
            {
                path: "/store/all",
                name: "StoreAll",
                component: () => import("@/pages/store/all.vue"),
                meta: {
                    title: "所有门店",
                    icon: "Shop",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            },
            { 
                // 厅管理
                path: "/store/hall",
                name: "StoreHall",
                component: () => import("@/pages/store/hall.vue"),
                meta: {
                    title: "厅管理",
                    icon: "Shop",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                }
            },
            {
                path: "/store/schedule",
                name: "StoreSchedule",
                component: () => import("@/pages/store/schedule.vue"),
                meta: {
                    title: "档期管理",
                    icon: "Calender",
                    affix: true,
                    keepAlive: true,
                    alwaysShow: false,
                },
            }
        ]
    }
];

export default routes;
